package com.kekezu.kppw.dataprocess;

import java.util.Map;

import android.content.Context;

import com.kekezu.kppw.data.HireData;

public class HireDP {
	/**
	 * 创建雇佣信息
	 * 
	 * @param strTitle
	 *            标题
	 * @param strDesc
	 *            详情
	 * @param strPhone
	 *            联系方式
	 * @param strDelivery
	 *            截止时间
	 * @param strBounty
	 *            预算
	 * @param strUid
	 *            被雇佣人id
	 * @param strFile
	 *            附件
	 * @param strServiceId
	 *            雇佣服务id
	 * @param context
	 * @return
	 */
	public static Map<String, String> createEmploy(String strTitle,
			String strDesc, String strPhone, String strDelivery,
			String strBounty, String strUid, String strFile,
			String strServiceId, Context context) {
		return HireData.createEmploy(strTitle, strDesc, strPhone, strDelivery,
				strBounty, strUid, strFile, strServiceId, context);
	}

	/**
	 * 雇佣，赏金托管
	 * 
	 * @param orderId
	 *            订单id
	 * @param employId
	 *            下单人
	 * @param intType
	 *            支付类型
	 * @param strPwd
	 *            余额支付密码
	 * @param context
	 */
	public static Map<String, String> cashPayEmploy(String orderId,
			String employId, int intType, String strPwd, Context context) {
		return HireData.cashPayEmploy(orderId, employId, intType, strPwd,
				context);
	}

	/**
	 * 雇佣，第三方支付
	 * 
	 * @param strTitle
	 *            支付说明
	 * @param strCash
	 *            支付金额
	 * @param strType
	 *            支付类型
	 * @param strTaskId
	 *            订单id
	 * @param context
	 * @return
	 */
	public static String ThirdCashEmployPay(String orderId, String employId,
			String strType, Context context) {
		return HireData.ThirdCashEmployPay(orderId, employId, strType, context);
	}

	/**
	 * 获取雇佣订单详情信息
	 * 
	 * @param strId
	 *            雇佣id
	 * @param context
	 * @return
	 */
	public static Map<String, String> employDetail(String strId, Context context) {
		return HireData.employDetail(strId, context);
	}

	/**
	 * 服务订单详情
	 * 
	 * @param strId
	 * @param context
	 * @return
	 */
	public static Map<String, String> employUserDetail(String strId,
			Context context) {
		return HireData.employUserDetail(strId, context);
	}

	/**
	 * 服务订单详情-服务内容
	 * 
	 * @param strId
	 * @param context
	 * @return
	 */
	public static Map<String, String> employServiceDetail(String strId,
			Context context) {
		return HireData.employServiceDetail(strId, context);
	}

	/**
	 * 服务订单详情-作品内容
	 * 
	 * @param strId
	 * @param context
	 * @return
	 */
	public static Map<String, String> employWorkDetail(String strId,
			Context context) {
		return HireData.employWorkDetail(strId, context);
	}

	/**
	 * 服务订单详情-评价内容
	 * 
	 * @param strId
	 * @param context
	 * @return
	 */
	public static Map<String, String> employCommentDetail(String strId,
			Context context) {
		return HireData.employCommentDetail(strId, context);
	}

	/**
	 * 处理雇佣
	 * 
	 * @param strId
	 * @param strType
	 *            1：雇主取消 2：威客接受 3：威客拒绝
	 * @param context
	 */
	public static String dealEmploy(String strId, String strType,
			Context context) {
		return HireData.dealEmploy(strId, strType, context);
	}

	/**
	 * 验收作品
	 * 
	 * @param strId
	 * @param context
	 * @return
	 */
	public static String acceptEmployWork(String strId, Context context) {
		return HireData.acceptEmployWork(strId, context);
	}

	/**
	 * 雇佣维权
	 * 
	 * @param strId
	 * @param intType
	 *            维权类型
	 * @param strDesc
	 *            维权详情
	 * @param context
	 * @return
	 */
	public static String employRights(String strId, int intType,
			String strDesc, Context context) {
		return HireData.employRights(strId, intType, strDesc, context);
	}

	public static String[] employEvaluate(String strId, String intType,
			String strDesc, float speed, float quality, float attitude,
			Context context) {
		return HireData.employEvaluate(strId, intType, strDesc, speed, quality,
				attitude, context);
	}

	/**
	 * 威客投稿
	 * 
	 * @param strId
	 *            对应的任务id
	 * @param strDesc
	 *            详情
	 * @param strFile
	 *            附件
	 * @param context
	 */
	public static void workEmployCreate(String strId, String strDesc,
			String strFile, Context context) {
		HireData.workEmployCreate(strId, strDesc, strFile, context);
	}

	/**
	 * 附件上传
	 * 
	 * @param file_id
	 * @param context
	 * @return
	 */
	public static String fileUpload(String file_id, Context context) {
		return HireData.fileUpload(file_id, context);
	}
}
